# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.

defmodule GoogleApi.Spectrum.V1explorer.Model.PawsRegisterRequest do
  @moduledoc """
  The registration request message contains the required registration parameters.

  ## Attributes

  - antenna (AntennaCharacteristics): Antenna characteristics, including its height and height type. Defaults to: `null`.
  - deviceDesc (DeviceDescriptor): A DeviceDescriptor is required. Defaults to: `null`.
  - deviceOwner (DeviceOwner): Device owner information is required. Defaults to: `null`.
  - location (GeoLocation): A device&#39;s geolocation is required. Defaults to: `null`.
  - type (String.t): The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...).  Required field. Defaults to: `null`.
  - version (String.t): The PAWS version. Must be exactly 1.0.  Required field. Defaults to: `null`.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :antenna => GoogleApi.Spectrum.V1explorer.Model.AntennaCharacteristics.t(),
          :deviceDesc => GoogleApi.Spectrum.V1explorer.Model.DeviceDescriptor.t(),
          :deviceOwner => GoogleApi.Spectrum.V1explorer.Model.DeviceOwner.t(),
          :location => GoogleApi.Spectrum.V1explorer.Model.GeoLocation.t(),
          :type => any(),
          :version => any()
        }

  field(:antenna, as: GoogleApi.Spectrum.V1explorer.Model.AntennaCharacteristics)
  field(:deviceDesc, as: GoogleApi.Spectrum.V1explorer.Model.DeviceDescriptor)
  field(:deviceOwner, as: GoogleApi.Spectrum.V1explorer.Model.DeviceOwner)
  field(:location, as: GoogleApi.Spectrum.V1explorer.Model.GeoLocation)
  field(:type)
  field(:version)
end

defimpl Poison.Decoder, for: GoogleApi.Spectrum.V1explorer.Model.PawsRegisterRequest do
  def decode(value, options) do
    GoogleApi.Spectrum.V1explorer.Model.PawsRegisterRequest.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Spectrum.V1explorer.Model.PawsRegisterRequest do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
